<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/pintuer.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/admin.css">
<script src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script src="${pageContext.request.contextPath}/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>添加轮播图</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" enctype="multipart/form-data" action="${pageContext.request.contextPath}/UploadIndexPicture"  name="fileUploadForm">  
      <div class="form-group">
        <div class="label">
          <label>文件：</label>
        </div>
        <div class="field">
          <input type="file" name="docFile"  style="display: none;"onchange="document.fileUploadForm.filePath.value=this.value,document.fileUploadForm.img.src=this.value"/>
          <input type="text" readonly="true" name="filePath" id="filePath" class="input" style="width:25%; float:left;"  value=""  data-toggle="hover" data-place="right" data-image="" />
          <input type="button"  onclick="document.fileUploadForm.docFile.click()" class="button bg-green margin-left" id="image1" value="+ 浏览上传"  style="float:left;">
          <div class="tipss img_div" name="tipImage" style="position: relative;bottom: 57px;display: none;"> <img alt="#" src="../images/bg.jpg" name="img" width="100px" height="100px"/></div>
         
        </div>
         
      </div>     
      <div class="form-group">
        <div class="label">
          <label>描述：</label>
        </div>
        <div class="field">
          <textarea class="input" name="description" style=" height:90px;"></textarea>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-green icon-check-square-o" type="submit"> 上传</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
</html>